﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<grupo2DEWStudio7i.Dominio.Local>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Modificacion
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <h2>Modificación de Local</h2>
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm("Modificar", "Local", FormMethod.Post)) {%>
        <%: Html.ValidationSummary(true) %>        
        <fieldset>
            <legend>Campos</legend>            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Codigo) %>
                <%: Html.HiddenFor(model => model.Codigo) %>
            </div>
            <div class="editor-field">
                <%: Model.Codigo %>
            </div>     <p></p>      
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Nombre) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Nombre) %>
                <%: Html.ValidationMessageFor(model => model.Nombre) %>
            </div>            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Direccion) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Direccion) %>
                <%: Html.ValidationMessageFor(model => model.Direccion) %>
            </div>            
            <p>
                <input type="submit" value="Guardar cambios" />
            </p>
        </fieldset>
    <% } %>
    <div>
        <%: Html.ActionLink("Regresar a la lista", "Index") %>
    </div>
</asp:Content>

